import io from 'api/io.js'
// 公共数字字典
export const findDataByCategory = async (params:any) =>await io.post(io.findDataByCategory, params)
export const addPraise = async (params:any,isPraise:string,that:any) =>{
    let {data}=await io.post(io.addPraise, params)
            if(data.success){
                if(isPraise=="0"){
                that.$message('点赞成功');
                }
            }
}
export const delPraise = async (params:any,that:any) =>{
    let {data}=await io.post(io.delPraise, params)
            if(data.success){
                that.$message('取消点赞成功')
            }
}
export const addUserFeedback = async (params:any,that:any) =>{
    let {data}=await io.post(io.addUserFeedback, params)
            if(data.success){
                that.$message('感谢您的反馈')
            }
}
export const addComment = async (params:any,that:any) =>{
    let {data}=await io.post(io.addComment, params)
            if(data.success){
                that.$message('发表成功')
            }
            return data
}
export const findLessonCommentPage = async (params:any) =>await io.post(io.findLessonCommentPage, params)
export const myCommentPage = async (params:any) =>await io.post(io.myCommentPage, params)




